﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001063 RID: 4195
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournResetPermanentTalentScRsp : IMessage<RogueTournResetPermanentTalentScRsp>, IMessage, IEquatable<RogueTournResetPermanentTalentScRsp>, IDeepCloneable<RogueTournResetPermanentTalentScRsp>, IBufferMessage
	{
		// Token: 0x170034ED RID: 13549
		// (get) Token: 0x0600BB61 RID: 47969 RVA: 0x001F8E0F File Offset: 0x001F700F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournResetPermanentTalentScRsp> Parser
		{
			get
			{
				return RogueTournResetPermanentTalentScRsp._parser;
			}
		}

		// Token: 0x170034EE RID: 13550
		// (get) Token: 0x0600BB62 RID: 47970 RVA: 0x001F8E16 File Offset: 0x001F7016
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournResetPermanentTalentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034EF RID: 13551
		// (get) Token: 0x0600BB63 RID: 47971 RVA: 0x001F8E28 File Offset: 0x001F7028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournResetPermanentTalentScRsp.Descriptor;
			}
		}

		// Token: 0x0600BB64 RID: 47972 RVA: 0x001F8E2F File Offset: 0x001F702F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournResetPermanentTalentScRsp()
		{
		}

		// Token: 0x0600BB65 RID: 47973 RVA: 0x001F8E38 File Offset: 0x001F7038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournResetPermanentTalentScRsp(RogueTournResetPermanentTalentScRsp other) : this()
		{
			this.permanentInfo_ = ((other.permanentInfo_ != null) ? other.permanentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BB66 RID: 47974 RVA: 0x001F8E84 File Offset: 0x001F7084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournResetPermanentTalentScRsp Clone()
		{
			return new RogueTournResetPermanentTalentScRsp(this);
		}

		// Token: 0x170034F0 RID: 13552
		// (get) Token: 0x0600BB67 RID: 47975 RVA: 0x001F8E8C File Offset: 0x001F708C
		// (set) Token: 0x0600BB68 RID: 47976 RVA: 0x001F8E94 File Offset: 0x001F7094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo PermanentInfo
		{
			get
			{
				return this.permanentInfo_;
			}
			set
			{
				this.permanentInfo_ = value;
			}
		}

		// Token: 0x170034F1 RID: 13553
		// (get) Token: 0x0600BB69 RID: 47977 RVA: 0x001F8E9D File Offset: 0x001F709D
		// (set) Token: 0x0600BB6A RID: 47978 RVA: 0x001F8EA5 File Offset: 0x001F70A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BB6B RID: 47979 RVA: 0x001F8EAE File Offset: 0x001F70AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournResetPermanentTalentScRsp);
		}

		// Token: 0x0600BB6C RID: 47980 RVA: 0x001F8EBC File Offset: 0x001F70BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournResetPermanentTalentScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.PermanentInfo, other.PermanentInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BB6D RID: 47981 RVA: 0x001F8F0C File Offset: 0x001F710C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.permanentInfo_ != null)
			{
				num ^= this.PermanentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BB6E RID: 47982 RVA: 0x001F8F61 File Offset: 0x001F7161
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BB6F RID: 47983 RVA: 0x001F8F69 File Offset: 0x001F7169
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BB70 RID: 47984 RVA: 0x001F8F74 File Offset: 0x001F7174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.permanentInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.PermanentInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BB71 RID: 47985 RVA: 0x001F8FD0 File Offset: 0x001F71D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.permanentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PermanentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BB72 RID: 47986 RVA: 0x001F9028 File Offset: 0x001F7228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournResetPermanentTalentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.permanentInfo_ != null)
			{
				if (this.permanentInfo_ == null)
				{
					this.PermanentInfo = new RogueTournPermanentTalentInfo();
				}
				this.PermanentInfo.MergeFrom(other.PermanentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BB73 RID: 47987 RVA: 0x001F9090 File Offset: 0x001F7290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BB74 RID: 47988 RVA: 0x001F909C File Offset: 0x001F729C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.permanentInfo_ == null)
					{
						this.PermanentInfo = new RogueTournPermanentTalentInfo();
					}
					input.ReadMessage(this.PermanentInfo);
				}
			}
		}

		// Token: 0x04004B71 RID: 19313
		private static readonly MessageParser<RogueTournResetPermanentTalentScRsp> _parser = new MessageParser<RogueTournResetPermanentTalentScRsp>(() => new RogueTournResetPermanentTalentScRsp());

		// Token: 0x04004B72 RID: 19314
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B73 RID: 19315
		public const int PermanentInfoFieldNumber = 12;

		// Token: 0x04004B74 RID: 19316
		private RogueTournPermanentTalentInfo permanentInfo_;

		// Token: 0x04004B75 RID: 19317
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04004B76 RID: 19318
		private uint retcode_;
	}
}
